<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="java.net.InetAddress"%>
<%@page import="com.mongodb.DBObject"%>
<%@page import="com.mongodb.DBCursor"%>
<%
String title = "Contact us";
String description = "Show details information about a website for example : alexa, pagerank, whois, ip,  the basic assessment of the site, provide  related to the website you are viewing";
String keywords = "website,site,5ty,5ty.org,alexa,google pagerank,pagerank,whois,ip,related site,infomation site";
String[] check = (String[]) request.getAttribute("check");
String success = (String) request.getAttribute("success");
%>

<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="index" value="true"/>
</jsp:include>

<div id="content">
        	<div id="content_inner">
            	<div id="leftsidecontent">
                	<div class="web-information">
						<p>
							If you have any questions, or comments and suggestions, please use the form below to contact us. Or you can mail to contact [at] ipsite.net .
						</p>
						<br/>
						<%=(success != null)?"<span style='color:blue;'>"+success+"</span><br/><br/>":"" %>
						<form action="/c" method="post" class="send_mail">
							Your name :<br/>
							<%=(check[0] != null)?"<p style='color:red;'>"+check[0]+"</p>":"" %>
							<input  type="text" name="name"/>
							Your email :<br/>
							<%=(check[1] != null)?"<p style='color:red;'>"+check[1]+"</p>":"" %>
							<input  type="text" name="email"/>
							Message :<br/>
							<%=(check[2] != null)?"<p style='color:red;'>"+check[2]+"</p>":"" %>
							<textarea name="message"></textarea>
							<br/>
							<%=(check[3] != null)?"<p style='color:red;'>"+check[3]+"</p>":"" %>
							<script>
					        	var RecaptchaOptions = { theme : 'clean' };
					  		</script>
							<%
								//6LdXmcISAAAAAHz6FsABghup-EayldUCiKQyDPAk //public
								//6LdXmcISAAAAANPIv5ykGg3LAlBMnUQHzy3-Kiqo //private
					          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LcF-80SAAAAACucExTAmD8RBzETYxDZ35DkbMVF", "6LcF-80SAAAAAM2kArjyUwtVJYbH_DKredY3Q26U", false);
					          out.print(c.createRecaptchaHtml(null, null));
					        %>
					        <br/>
							<button type="submit">Send</button>
						</form>	
						<br/>	
                			<%@ include file='/adv/left.jsp'%>
                		
                			<%@ include file='/adv/left.jsp'%>
                    </div>
                </div>
                <div id="rightsidecontent">
                	<div class="adv-1">
                		<%@ include file='/adv/left.jsp'%>
                	</div>

                    <div class="box">
                    	<h3>Recent site update</h3>
                        <div class="content-box">
                        	<%@ include file='/element/site_update.jsp'%>

                        </div>
                    </div>
                </div>
                <div class="clearbreak"></div>
            </div>
        </div>
<%@ include file='/layout/footer.jsp'%>		